﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PhotoGalleryEnteties;

namespace PhotogalleryModel
{
    public class PhotoRecentCommented:News
    {
        public int PhotoId { get;private  set; }
        public string PhotoTitle { get;private set; }
        public string AlbumTitle { get; private set; }

        public PhotoRecentCommented (PhotoInfo photo )
        {
            Title = "New comments for photo";
            PhotoTitle = photo.Title;
            AlbumTitle = photo.Album.Title;
            PhotoId = photo.PhotoId;
        }

    }
}
